import { Injectable } from '@angular/core';
import { HOSTURL } from '../../../config';
import { RequestClientService } from '../../request-client.service';

@Injectable({
  providedIn: 'root'
})
export class EquipmentMonitoringService {

  constructor(
    private requestClientService: RequestClientService
  ) { }
  // 获取塔吊设备列表
  public async QueryMachinesPagedList({status, type, filter, creationTimeRange, sorting, maxResultCount, skipCount}) {
    const res = await this.requestClientService.post(HOSTURL + '/api/services/huahui/ThirdParty/QueryMachinesPagedList', {status, type, filter, creationTimeRange, sorting, maxResultCount, skipCount});
    return res;
  }
  // 获取塔吊设备详情
  public async QueryMachinesDetailsById({blackBoxId, type}) {
    const res = await this.requestClientService.post(HOSTURL + '/api/services/huahui/ThirdParty/QueryMachinesDetailsById', {blackBoxId, type});
    return res;
  }
}
